add_library(vtkPart STATIC MeshActor.cpp SelectorHighlight.cpp QRenderWindowStyle.cpp SelectManager.cpp SplineActor.cpp MeshActorManager.cpp SplineActorManager.cpp
)
target_include_directories(vtkPart PUBLIC
	${CMAKE_CURRENT_SOURCE_DIR}   # 头文件路径
)
target_link_libraries(vtkPart PUBLIC Core)
target_link_libraries(vtkPart
    PRIVATE
        Data
        TKIVtk TKDESTEP
        VTK::InteractionStyle
)
vtk_module_autoinit(TARGETS vtkPart MODULES VTK::InteractionStyle)

qt_add_qml_module(renderQml
    URI app.render
    STATIC
    SOURCES QRenderWindow.h QRenderWindow.cpp
)
target_link_libraries(renderQml PRIVATE 
    vtkPart modelQml 
    VTK::GUISupportQtQuick VTK::CommonColor
)
vtk_module_autoinit(TARGETS renderQml MODULES 
    VTK::GUISupportQtQuick VTK::CommonColor
)